home *** CD-ROM | disk | FTP | other *** search
-
- Figure 1
- --------
-
- hufftree.h. This file defines the struct used to contain the
- Huffman encoding tree and declares the functions used in the programs.
-
- struct htree
- { short parent;
- short right;
- short left;
- };
-
- #ifdef MAIN
- struct htree ht[512];
- short root;
- #else
- extern struct htree ht[];
- extern short root;
- #endif
-
- void compress(int inlen, char *bufin, int *outlen, char *bufout);
- void encode(short h, short child, int *outlen, char *bufout);
- void emit(int bit, int *outlen, char *bufout);
- void decode(char *bufin, int *outlen, char *bufout);
-
-